<%= stylesheet_link_tag "problem" %>
<table class="problem_table">
  <tr class="head">
    <td> <div> Problem ID </div></td>
    <td> <div> Problem name </div></td>
    <td> <div> Success count </div></td>
    <td> <div> Success rate </div></td>
  </tr>
<% selected_problems.each do |p| %>
  <%= "<tr class=\"#{get_problem_state(p, contest)}\">" %>
  <td> <%= p.id %> </td>
  <td> <%= link_to p.name, :controller => "problems", :action => "show", :id => p.id%> </td>
  <td> <%= get_problem_succ_count(p, contest) %> </td>
  <td> <%= get_problem_succ_rate(p, contest).to_s + "%" %> </td>
  </tr>
<%end%>
</table>


